<?php

require 'Response.php';
require 'DB.php';

$pdo=DB::getInstance()->connect();


$stmt = $pdo->query("SELECT * FROM `equipment`");
//$stmt = $pdo->query(); //返回一个PDOStatement对象

$data = $stmt->fetchAll();//获得所有
//var_dump($data);
Response::json('200','成功',$data);


